package com.s666.demo.dao.mapper;

import com.s666.demo.dao.entity.SysUser;

import com.s666.demo.model.dto.UserRolesDTO;

/**
 * @author lijin
 */
public interface SysUserMapper {
    /**
     * 根据名称查询
     * @param username
     * @return
     */
    UserRolesDTO findByUsername(String username);

    /**
     * 插入一条纪录
     * @param record
     * @return
     */
    int insert(SysUser record);
}